package com.spt.springbootzhsx.service;

import com.spt.springbootzhsx.entity.Plan;
import com.spt.springbootzhsx.entity.back.PlanBack;

import java.util.ArrayList;
import java.util.Date;

public interface PlanService {
    ArrayList<PlanBack> getAllPlan();
    ArrayList<PlanBack> getAllPlanNow();
    ArrayList<PlanBack> getPlanByMname(String mname);
    ArrayList<PlanBack> getPlanByMnameNow(String mname);
    ArrayList<PlanBack> getPlanByMnameOrCname(String key);
    ArrayList<PlanBack> getPlanByMnameOrCnameNow(String key);
    ArrayList<PlanBack> getPlanByMidAndDate(Integer mid, long date);
    PlanBack getPlanByPid(Integer pid);
    String addPlan(Plan plan);
    String updatePlan(Plan plan);
    String deletePlan(Integer pid);
}
